#
#   add_admin.py
#   journalismManger
#
#   Created by luoxh on 2019-07-24-16:13.
#   Copyright © 2019 luoxh. All rights reserved.
#
import sys

sys.path.append('../')

from datetime import datetime

from src.model.admin import Admin

admin = Admin(username='readrou', birthday=datetime(1998, 2, 18), nickname='Luoxh', position='Java后端工程师',
              git_address='www.github.com/ReadRou',
              skill=[{'name': "Web应用", 'percentage': "90"}, {'name': "网页设计", 'percentage': '50'},

                     {'name': "自动化测试", 'percentage': '80'},

                     {'name': "UI/UX", 'percentage': '40'}, ], location='海伦堡，广州番禺，中国', )
admin.password = 'Haishi123456'
print(admin.to_json())
admin.save()
